package com.zjl.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author EternalPain
 * @Date 2023/1/31 18:06
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class WalletRecord implements Serializable {

    private int walletRecordId;
    private int userId;
    private boolean operation;
    private BigDecimal money;
    private boolean isRefund;

    public WalletRecord(int userId, boolean operation, BigDecimal money) {
        this.userId = userId;
        this.operation = operation;
        this.money = money;
    }

    public WalletRecord(int userId, boolean operation, BigDecimal money, boolean isRefund) {
        this.userId = userId;
        this.operation = operation;
        this.money = money;
        this.isRefund = isRefund;
    }
}
